<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 宿主 -->
    <div id="app">
        {{title}}
    </div>
<script src="js/vue.js"></script>
<script>
    //1.创建vue实例
    const app = new Vue({
        el:'#app',
        data(){
            return{
                title:'hello World'
            }
        },
    })

    setTimeout(()=>{
        app.title = 'hello Vue'
    },1000)
</script>
</body>
</html>